Python: Ignore non-project workspace glob matches - #7509
Open
Luis Rodriguez (luisangelrod) wants to merge 2 commits into
Open
Python: Ignore non-project workspace glob matches#7509Luis Rodriguez (luisangelrod) wants to merge 2 commits into
Luis Rodriguez (luisangelrod) wants to merge 2 commits into
Conversation
Luis Rodriguez (luisangelrod)
temporarily deployed
to
github-app-auth
August 4, 2026 15:52 — with
GitHub Actions
Inactive
Luis Rodriguez (luisangelrod)
temporarily deployed
to
github-app-auth
August 4, 2026 15:52 — with
GitHub Actions
Inactive
Luis Rodriguez (luisangelrod)
had a problem deploying
to
github-app-auth
August 4, 2026 15:52 — with
GitHub Actions
Error
Luis Rodriguez (luisangelrod)
temporarily deployed
to
github-app-auth
August 4, 2026 15:52 — with
GitHub Actions
Inactive
Copilot started reviewing on behalf of
Luis Rodriguez (luisangelrod)
August 4, 2026 15:52
View session
Luis Rodriguez (luisangelrod)
force-pushed
the
luisangelrod-7508
branch
from
August 4, 2026 15:52
1cc6af3 to
6387c2b
Compare
Luis Rodriguez (luisangelrod)
temporarily deployed
to
github-app-auth
August 4, 2026 15:52 — with
GitHub Actions
Inactive
Contributor
There was a problem hiding this comment.
Pull request overview
Updates the Python workspace task utilities to avoid treating stale packages/* directories (without a pyproject.toml) as workspace projects, preventing FileNotFoundError failures during workspace-wide task execution.
Changes:
- Filter glob-expanded workspace members to only include paths that contain a
pyproject.toml. - Add a regression test covering a valid package directory alongside a stale directory match.
Reviewed changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.
| File | Description |
|---|---|
| python/scripts/task_runner.py | Filters globbed workspace member matches to only include directories that have a pyproject.toml. |
| python/scripts/tests/test_task_runner.py | Adds a regression test for ignoring stale glob matches without pyproject.toml. |
Author
|
@microsoft-github-policy-service agree |
Luis Rodriguez (luisangelrod)
force-pushed
the
luisangelrod-7508
branch
from
August 5, 2026 16:06
6387c2b to
750d74e
Compare
Luis Rodriguez (luisangelrod)
temporarily deployed
to
github-app-auth
August 5, 2026 16:06 — with
GitHub Actions
Inactive
Luis Rodriguez (luisangelrod)
marked this pull request as ready for review
August 5, 2026 16:07
Luis Rodriguez (luisangelrod)
temporarily deployed
to
github-app-auth
August 5, 2026 16:07 — with
GitHub Actions
Inactive
Luis Rodriguez (luisangelrod)
temporarily deployed
to
github-app-auth
August 5, 2026 16:37 — with
GitHub Actions
Inactive
Contributor
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Motivation & Context
Workspace project discovery currently treats every directory matched by
packages/*as a project. After a package is removed or moved, a stale local directory can remain without apyproject.toml, causing contributor commands such asuv run poe syntaxto fail withFileNotFoundError.Description & Review Guide
pyproject.toml, and add a regression test with valid and stale package directories.Related Issue
Fixes #7508
Contribution Checklist
breaking changelabel (or add "[BREAKING]" to the title prefix, before or after any language prefix) — a workflow keeps the label and title prefix in sync automatically.